<div
  #contentWindow
  [id]="id"
  [ngClass]="{'active': view.active}"
  class="window"
>
  <div class="view">
    <div
      *ngFor="let sub of subViews; let i = index"
      class="sub-view"
      [ngClass]="{'sub-border-style':subViews.length > 1, 'many-view': subViews.length > 1, 'height-view': subViews.length > 2, 'three-view': subViews.length == 3 && i == 2}"
    >
      <div *ngIf="sub.smartEndpoint">
        <elements-content-view
          [view]="sub"
          [hasHead]="subViews.length > 1"
          [canClose]="i !== 0"
        ></elements-content-view>
      </div>
    </div>
  </div>
</div>
